<?php


namespace app\common\model;


use think\Model;

class AnchorIncomeModel extends Model
{
    protected $connection = 'db_live';

    public function anchor()
    {
        return $this->hasOne(UserModel::class, 'id', 'anchorid')->with('profile')->field("id, nick_name, avatar, is_anchor");
    }
}